Developer --> Technical Publications
PATHMac OS 8 Developer Documentation > Human Interface Toolbox > Dialog Manager >

Mac OS 8 Dialog Manager Reference


Alert Button Constants

You can use these constants in the defaultButton and cancelButton fields in the standard alert structure AlertStdAlertParamRec to specify which buttons act as the default and Cancel buttons in the standard alert structure. These constants are also returned in the itemHit parameter of StandardAlert . Alert button constants are available with Appearance Manager 1.0 and later.

enum {
    kAlertStdAlertOKButton      = 1,
    kAlertStdAlertCancelButton  = 2,
    kAlertStdAlertOtherButton   = 3,
    kAlertStdAlertHelpButton    = 4
};

Constant descriptions

kAlertStdAlertOKButton
The OK button. The default text for this button is "OK".
kAlertStdAlertCancelButton
The Cancel button (optional). The default text for this button is "Cancel".
kAlertStdAlertOtherButton
A third button (optional). The default text for this button is "Don't Save".
kAlertStdAlertHelpButton
The Help button (optional).

© 1998 Apple Computer, Inc. - (Last Updated 19 Nov 98)

Previous | Back Up One Level | Next |